package com.moto.customer.action;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.moto.customer.pojo.Customer;

@Controller
@RequestMapping("customer")
public class CustomerAction {
	
	@RequestMapping("hello.do")
	public @ResponseBody Customer hello(){
		System.out.println("测试访问springMVC");
		Customer c = new Customer();
		c.setId("123");
		c.setName("name");
		c.setPassword("password");
		return c;
	}
	
}
